//
//  EAppInfoDatabase.m
//  AppRanking
//
//  Created by Gang.Wang on 12-11-23.
//  Copyright (c) 2012年 Gang.Wang. All rights reserved.
//

#import "EAppRankingDatabase.h"
#import "EAppInfoTable.h"
#import "EAppInfoRecrod.h"

//#define _DATABASE_FILE_PATH_                    [YPath Combine:kDocuments combinePath:@"database.sqlit"]


@implementation EAppRankingDatabase

//SYNTHESIZE_SINGLETON_FOR_CLASS(EAppRankingDatabase)


- (id) init
{
    self = [super initWithDataBasePath:@""/*_DATABASE_FILE_PATH_*/];
    if (self)
    {
        
    }
    return self;
}
//
//
//- (void) insterOrUpdateApplicationInfo:(EAppInfoRecrod *) recrod
//{
//    if (!recrod)
//    {
//        return;
//    }
//        
//    
//}
//

- (NSArray *) applicationArray
{
//    NSArray * rowIds = [self.entityManager rowids:CLASSNAME(EAppInfoTable) withArgument:nil];
//    if ([NSArray isNilOrEmpty:rowIds])
//    {
//        return nil;
//    }
//
    return [self allRecords:CLASSNAME(EAppInfoTable)];
    
}

@end
